package org.jeecg.modules.wms.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 出库单明细表
 * @Author: jeecg-boot
 * @Date: 2023-07-01
 * @Version: V1.0
 */
@Data
@TableName("wms_outbound_detail")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_outbound_detail对象", description="出库单明细表")
public class WmsOutboundDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    
    /**出库单ID*/
    @ApiModelProperty(value = "出库单ID")
    private String outboundId;
    
    /**物料类型：1-型材，2-配件，3-辅件，4-半成品，5-成品*/
    @Excel(name = "物料类型", width = 15, dicCode = "material_type")
    @ApiModelProperty(value = "物料类型")
    private String materialType;
    
    /**物料编码*/
    @Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private String materialCode;
    
    /**物料名称*/
    @Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String materialName;

    /**物料系列 */
    @Excel(name = "物料系列", width = 15)
    @ApiModelProperty(value = "物料系列")
    private String materialSeries;

    
    /**规格*/
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String specification;
    
    /**颜色*/
    @Excel(name = "颜色", width = 15)
    @ApiModelProperty(value = "颜色")
    private String color;
    
    /**出库数量*/
    @Excel(name = "出库数量", width = 15)
    @ApiModelProperty(value = "出库数量")
    private BigDecimal quantity;
    
    /**单位*/
    @Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private String unit;
    
    /**仓库ID*/
    @ApiModelProperty(value = "仓库ID")
    private String warehouseId;

    /**仓库名称*/
    @Excel(name = "仓库名称", width = 15)
    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;
    
    /**库位ID*/
    @ApiModelProperty(value = "库位ID")
    private String locationId;

    /**库位名称*/
    @Excel(name = "库位名称", width = 15)
    @ApiModelProperty(value = "库位名称")
    private String locationName;

    /**目标仓库ID*/
    @ApiModelProperty(value = "目标仓库ID")
    private String targetWarehouseId;

    /**目标仓库名称*/
    @Excel(name = "目标仓库名称", width = 15)
    @ApiModelProperty(value = "目标仓库名称")
    private String targetWarehouseName;

    /**目标库位ID*/
    @ApiModelProperty(value = "目标库位ID")
    private String targetLocationId;

    /**目标库位名称*/
    @Excel(name = "目标库位名称", width = 15)
    @ApiModelProperty(value = "目标库位名称")
    private String targetLocationName;
    
    /**批次号*/
    @Excel(name = "批次号", width = 15)
    @ApiModelProperty(value = "批次号")
    private String batchNo;
    
    /**状态：0-待出库，1-已出库，2-部分出库*/
    @Excel(name = "状态", width = 15, dicCode = "wms_outbound_detail_status")
    @ApiModelProperty(value = "状态")
    private String status;

    /**是否完成分配 "1" - 已完全分配
     "2" - 部分分配，库存不足
     "3" - 未分配，库存不足 */
    @ApiModelProperty(value = "是否完成分配")
    private String allocationStatus;

    /**已分配数量*/
    @ApiModelProperty(value = "已分配数量")
    private BigDecimal allocatedQuantity;

    /**剩余待分配数量*/
    @ApiModelProperty(value = "剩余待分配数量")
    private BigDecimal remainingQuantity;

    /**实际出库数量*/
    @ApiModelProperty(value = "实际出库数量")
    private BigDecimal actualQuantity;
    
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    
    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
} 